﻿
@using LKVMLMADMIN.Models;
@using PagedList.Mvc;
@using System.Globalization;
@{
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
@using (Html.BeginForm("ListFeeConfig", "CauHinh", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-inline" }))
{
    <div id="wrapper">
        <div class="row">
            <h3 class="page-header">Cấu hình chi phí</h3>
        </div>
        <!-- /.row -->
        <div class="row">
            <div class="col-lg-12">
                <div class="panel-body">
                    <div class="dataTable_wrapper">
                        <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                            <thead>
                                <tr style="font-family:'Times New Roman'">
                                    <th>STT</th>
                                    <th>Addfund </th>
                                    <th>Cashout </th>
                                    <th>BuyStock </th>
                                    <th>SellStock </th>
                                    <th>PremiumEdit </th>
                                    <th>Sửa</th>
                                </tr>
                            </thead>
                            <tbody style="font-family:'Times New Roman'">
                                @{ int j = 0;}
                                @foreach (var item in ViewBag.ListFee)
                                {
                                    j++;
                                    <tr>
                                        <td>@j</td>
                                        <td>@item.Addfund </td>
                                        <td>@item.Cashout</td>
                                        <td>@item.BuyStock</td>
                                        <td>@item.SellStock</td>
                                        <td>@item.PremiumEdit</td>
                                        <td><a href="@Url.Action("ConfigFee", "CauHinh", new { Id = item.Id })">Sửa</a></td>
                                     
                                    </tr>
                                }
                            </tbody>

                        </table>
                    </div>
               
                </div>

            </div>
        </div>
    </div>
    <script type="text/javascript">
        $('.con').on('click', function () {
            return confirm('bạn có chắc chắn muốn xóa?');
        });
    </script>
    <script>
        $(document).ready(function () {
            $('#dataTables-example').DataTable({
                responsive: true
            });
        });
    </script>
}